
package base;

import java.util.*;

/**
 * @author lzq
 */
public class Coffee_brewer extends Product {

    private String model;

    private String supply;

    private int numOfCups;

    /**
     * Default constructor
     */
    public Coffee_brewer(String code,String description,double price,int number,String model,String supply,int numOfCups) {
        super(code,description,price,number);
        this.model = model;
        this.supply = supply;
        this.numOfCups = numOfCups;
    }

    /**
     * @param model
     * setModel
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     * set supply
     * @param supply
     */
    public void setSupply(String supply) {
        this.supply = supply;
    }

    /**
     * set num of cups
     * @param numOfCups
     */
    public void setNumOfCups(int numOfCups) {
        this.numOfCups = numOfCups;
    }

    /**
     * showProduct
     */
    public void showProduct() {
        super.showProduct();
        System.out.println(model+" "+supply+" "+numOfCups);
    }

}